<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>挂靠公司授信信息</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body class="iframeBody">
<div class="Wrapper">
<div id="pageInTab" class="pageInTab">
	 <form id="prj_lnk_comp_cr_lim_form">
                        <div class="fieldset1 tabel_col clearFix">
		               		  <div class="fieldBox col_50">
				                    <div class="label">当前实际敞口（元）</div>
				                    <div class="field">
				                          <span style="color: red">${currCrAmt}</span>
				                    </div>
		               		 </div>
		               		 <div class="fieldBox col_50">
				                    <div class="field">
				                           <div class="field">
						                          <input type="checkbox" id="isLimit" name="isLimit"  readonly="readonly"
						                         <c:if test="${crLimit.isLimit==1 }">
				                                 checked="checked"
				                                  </c:if>
						                        />取消敞口限制
				                    </div>
				                    </div>
		               		 </div>
		               		  <div class="fieldBox col_50">
                                <div class="label">开始时间</div>
                                <div class="field"> 
                                	<span id="startDt">${crLimit.startDt}</span>
                                </div>
                            </div>
                              <div class="fieldBox col_50">
                                <div class="label">结束时间</div>
                                <div class="field"> 
                                	<span id="endDt">${crLimit.endDt}</span>
                                </div>
                            </div>
                              <div class="fieldBox col_50">
                                <div class="label">敞口金额（元）</div>
                                <div class="field"> 
                                   <span>${crLimit.crAmt}</span>
                                </div>
                            </div>
                             <div class="fieldBox col_100" style="display:none;">
								<div class="field">
								    <input name="crLimitId"  id="crLimitId" type="text" class="ui-textbox" value="${crLimit.id }" >
								</div>
							</div>
                            </div>
                    </form>
                    </div>
                    </div>
	<script>
	 
	var crAmtValue ='${crAmt}';
	var currCrAmtValue='${currCrAmt}';
	$("#currCrAmt").text((parseFloat(currCrAmtValue/100)).toFixed(2));
	$("#crAmt").val((parseFloat(crAmtValue/100)).toFixed(2));
		$(function() {
			   var sDate = $("#startDt").val();
			   var eDate = $("#endDt").val();
			   if(sDate){
			    	var startDt = DateUtils.formatDate(new Date(sDate),DateUtils.YYYY_MM_DD);
			    	$("#startDt").html(startDt);
			    }
		    	if(eDate){
			    	var endDt = DateUtils.formatDate(new Date(eDate),DateUtils.YYYY_MM_DD);
			    	$("#endDt").html(endDt);//注册日期
		    	}
			 var ligerForm = liger.get("prj_lnk_comp_cr_lim_form");
		   $("#prj_lnk_comp_cr_lim_form").ligerForm({
                validate: true
           });

		});
		
	</script>

</body>
</html>